package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.coursevo.CoursePublishVo;
import com.atguigu.eduservice.entity.coursevo.FrontCourseInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-04-13
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    //根据课程id查询课程确认信息
    CoursePublishVo getPublishInfoCourse(String id);

    //根据课程id查询课程基本信息，用于详情显示
    FrontCourseInfoVo getFrontCourseBaseInfo(String courseId);
}
